package com.qf.hospital.enums;

/**
 * @author 何星宇
 * @version V1.0
 * @Date 2021/10/15 20:32
 */
public enum HospitalExceptionEnum {
    USERNAME_PASSWORD_ERROR(100,"账号或密码错误"),
    SYSTEM_EXCEPTION(500,"系统异常"),
    INVALID_PARAMETER(600,"参数错误"),
    ADDUSER_EXCEPTION(606,"添加用户异常"),
    LOGIN_TIMEOUT(999,"登录超时");
    private Integer code;

    private String msg;

    HospitalExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
